/*
  全局配置  
*/
require('env2')('./.env')
const { SER_PORT,CORS_ORIGIN } = process.env
module.exports = {
  port: SER_PORT, //服务器端口号,
  staticDir: './static', //静态目录
  session: { //配置session
    secret: 'quers',
    resave: false,
    saveUninitialized: true,
    cookie: { secure: false }
  },
  //cors:false, //关闭跨域资源共享
  cors:{//跨域资源共享
    // origin:['http://127.0.0.1:8080','http://localhost:8080','http://127.0.0.1:8081'],
    origin:CORS_ORIGIN.split(','),
    credentials:true
  }
};